<?php
//ОБЩЕЕ ДЕРЕВО - 1я часть
$idFolder = isset($idCommunity) ? $idCommunity : NULL;
$treeStructureType = 'community'; // essenceType
include(TEMPLATE . 'columns/left/treeStructure.php');



/*$regime = User_Variable::getVariableValue($idUser, 'commLeftColumn', true);
$arrCommunityMy = Community::getUsersCommunity($idUser);
$arrCommunityTop = Community::getRatingCommunity(6);
echo '
<ul class="name">
	<li id="one" ' . ($regime != 2 ? 'class="active"' : NULL) . '><a onClick="changeLeftColumnToOne(); return false;" href=""><span>Cообщества</span></a></li>
	<li id="two" ' . ($regime == 2 ? 'class="active"' : NULL) . '><a onClick="changeLeftColumnToTwo(); return false;"  href=""><span>В которых я состою</span></a></li>
</ul>';


echo '<div id="rating" ' . ($regime == 2 ? 'style="display:none"' : NULL) . '>';
foreach ($arrCommunityTop as $arrCommunityTop)
echo '
<div class="community">
	<img alt="' . $arrCommunityTop['name'] . '" src="' . W_IMAGES . 'pictures/community/' . $arrCommunityTop['ID_community'] . '.' . $arrCommunityTop['avatar_path'] . '" height="32" width="32" />
	<div class="community_box">
		<ul>
			<li><a href="' . W_ABSPATH . 'community/' . $arrCommunityTop['ID_community'] . '/">' . $arrCommunityTop['name'] . '</a></li>
			<li>' . $arrCommunityTop['description'] . '</li>
		</ul>
		<p>' . $arrCommunityTop['average_mark'] . '</p>
	</div>
</div>';
echo '
<span class="all_community"><a href="' . W_ABSPATH . 'communities">Все сообщества</a></span>
</div>';


echo '<div id="my" ' . ($regime == 2 ? NULL : 'style="display:none"') . '>';
foreach ($arrCommunityMy as $arrCommunityMy)
echo '
<div class="community">
	<img alt="' . $arrCommunityMy['name'] . '" src="' . W_IMAGES . 'pictures/community/' . $arrCommunityMy['ID_community'] . '.' . $arrCommunityMy['avatar_path'] . '" height="32" width="32" />
	<div class="community_box">
		<ul>
			<li><a href="' . W_ABSPATH . 'community/' . $arrCommunityMy['ID_community'] . '/">' . $arrCommunityMy['name'] . '</a></li>
			<li>' . $arrCommunityMy['description'] . '</li>
		</ul>
		<p>' . $arrCommunityMy['average_mark'] . '</p>
	</div>
</div>';
echo '<span class="all_community"><a href="' . W_ABSPATH . 'community/my">Мои сообщества</a></span>
</div>';*/
?>